@import '~@common/css/_variables.scss';

.list {
  display: flex;

  li {
    position: relative;
    width: calc(16.66% - 20px);

    &:not(:last-child) {
      margin-right: 20px;
    }

    .img_box {
      position: relative;
      width: 100%;
      padding-top: 100%;
      cursor: pointer;
      background-position: center center;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      border-radius: 6px;

      &::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('~@images/icon_mask_layer3.png') top center / 100%
          no-repeat;
        border-radius: 6px;
        content: '';
      }
    }

    .name {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 10px 6px;
      overflow: hidden;
      font-size: 14px;
      color: #fff;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .rcmdText {
      display: -webkit-box;
      margin: 4px 0 14px;
      overflow: hidden;
      font-size: 14px;
      line-height: 1.5;
      text-overflow: ellipsis;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    @media screen and (max-width: 1060px) {
      width: calc(25% - 15px);

      &:last-child {
        display: none;
      }
    }
  }
}
